<script setup lang="ts">
import ConsultList from './components/ConsultList.vue'
// import cpNavBarVue from '@/components/cp-nav-bar.vue'
import type { ConsultType } from '@/enums'
import { getConsultOrderList } from '@/api/consult'
import type { ConsultOrderItem, ConsultOrderListParams } from '@/types/consult'
import { ref } from 'vue'
import ConsultItem from './ConsultOrder.vue'
// import { ConsultType } from '@/enums'
</script>

<template>
  <div class="consult-page">
    <!-- 导航组件 -->
    <cp-nav-bar middle="问诊记录"></cp-nav-bar>
    <!-- 页签组件 -->
    <van-tabs sticky>
      <van-tab title="极速问诊"><consult-list :type="2" /></van-tab>
      <van-tab title="找医生"><consult-list :type="1" /></van-tab>
      <van-tab title="开药问诊"><consult-list :type="3" /></van-tab>
    </van-tabs>
  </div>
</template>

<style lang="scss" scoped>
.consult-page {
  padding-top: 46px;
  background-color: var(--cp-bg);
  min-height: calc(100vh - 46px);
}
</style>
